<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      xmlns="http://www.w3.org/1999/html" layout:decorator="base/model.html">


<!-- start: Content -->
<div layout:fragment="content" class="main " style="padding: 10px 10px 0 10px">


    <div class="row">
        <div class="col-lg-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h2><i class="fa fa-indent red"></i><strong>详情</strong></h2>
                </div>
                <div class="panel-body">

                    <table class="table table-striped">

                        <thead>
                        <tr>
                            <th>承办部门</th>
                            <td>
                                <p th:if="${#lists.isEmpty(workInfo.department)}" class="form-control-static"></p>
                                <p th:unless="${#lists.isEmpty(workInfo.department)}" class="form-control-static"
                                   th:text="${workInfo.department.department}"></p>
                            </td>

                            <th> 合作单位性质</th>
                            <td>
                                <p th:if="${#lists.isEmpty(workInfo.unitsNature)}" class="form-control-static"></p>
                                <p th:unless="${#lists.isEmpty(workInfo.unitsNature)}" class="form-control-static"
                                   th:text="${workInfo.unitsNature.name}"></p>

                            </td>
                        </tr>
                        </thead>
                        <tr>
                            <th>合作单位名称</th>
                            <td><p class="form-control-static" th:text="${workInfo.unitscooperativename}"></p></td>
                            <th>企业类型</th>
                            <td>
                                <p th:if="${#lists.isEmpty(workInfo.cooperativeType)}" class="form-control-static"></p>
                                <p th:unless="${#lists.isEmpty(workInfo.cooperativeType)}" class="form-control-static"
                                   th:text="${workInfo.cooperativeType.type}"></p>
                            </td>
                        </tr>
                        <tr>
                            <th>企业规模</th>
                            <td>
                                <p th:if="${#lists.isEmpty(workInfo.scale)}" class="form-control-static"></p>
                                <p th:unless="${#lists.isEmpty(workInfo.scale)}" class="form-control-static"
                                   th:text="${workInfo.scale.scale}"></p>
                            </td>
                            <th>外资属性</th>
                            <td>
                                <p th:if="${#lists.isEmpty(workInfo.foreignProperty)}" class="form-control-static"></p>
                                <p th:unless="${#lists.isEmpty(workInfo.foreignProperty)}" class="form-control-static"
                                   th:text="${workInfo.foreignProperty.property}"></p>
                            </td>

                        </tr>
                        <tr>
                            <th>行政区属</th>
                            <td>
                                <p th:if="${#lists.isEmpty(workInfo.administrativeDistrict)}"
                                   class="form-control-static"></p>
                                <p th:unless="${#lists.isEmpty(workInfo.administrativeDistrict)}"
                                   class="form-control-static"
                                   th:text="${workInfo.administrativeDistrict.administrativedistrict}"></p>
                            </td>
                            <th>企业联系人以及联系方式</th>
                            <td>
                                <p class="form-control-static" th:text="${workInfo.contactsname}"></p>
                            </td>

                        </tr>
                        <tr>
                            <th>是否签署合作协议</th>
                            <td>
                                <p class="form-control-static"
                                   th:if="${workInfo.signagreement==1}"
                                   th:text="是"></p>

                                <p class="form-control-static"
                                   th:if="${workInfo.signagreement==2}"
                                   th:text="否"></p>
                            </td>
                            <th>协议签署时间</th>
                            <td><p class="form-control-static"
                                   th:text="${#dates.format(workInfo.signtime,'yyyy-MM-dd')}"></p></td>
                        </tr>
                        <tr>
                            <th>项目分类</th>
                            <td>
                                <p th:if="${#lists.isEmpty(workInfo.projectType)}" class="form-control-static"></p>
                                <p th:unless="${#lists.isEmpty(workInfo.projectType)}" class="form-control-static"
                                   th:text="${workInfo.projectType.projecttype}"></p>
                            </td>
                            <th>本月工作进展情况</th>
                            <td>
                                <p class="form-control-static" th:text="${workInfo.workprogress}"></p>

                            </td>

                        </tr>
                        <tr th:if="${#lists.isEmpty(workInfo.cooperativeContentRelList)}">
                            <th>合作内容</th>
                            <td><p class="form-control-static"></p></td>
                            <th>合作内容主要简介</th>
                            <td><p class="form-control-static"></p></td>
                        </tr>
                        <tr th:unless="${#lists.isEmpty(workInfo.cooperativeContentRelList)}"
                            th:each="cooperativeContentRel,state  : ${workInfo.cooperativeContentRelList}">
                            <th>合作内容</th>
                            <td><p class="form-control-static"
                                   th:text="${cooperativeContentRel.cooperativeContent.content}"></p></td>
                            <th>合作内容主要简介</th>
                            <td>
                                <p class="form-control-static" th:text="${cooperativeContentRel.briefintroduction}"></p>
                            </td>
                        </tr>

                        <tr>
                            <th>下一步工作计划</th>
                            <td><p class="form-control-static" th:text="${workInfo.workplan}"></p></td>
                            <th>阶段性工作成果</th>
                            <td>
                                <p class="form-control-static" th:text="${workInfo.workresult}"></p>
                            </td>
                        </tr>
                        <tr>
                            <th>部门联系人及联系方式</th>
                            <td><p class="form-control-static" th:text="${workInfo.departmentContactName}"></p></td>
                            <th>企业所在地</th>
                            <td>
                                <p th:if="${#lists.isEmpty(workInfo.enterpriseLocation)}"
                                   class="form-control-static"></p>
                                <p th:unless="${#lists.isEmpty(workInfo.enterpriseLocation)}"
                                   class="form-control-static"
                                   th:text="${workInfo.enterpriseLocation.enterpriselocation}"></p>
                            </td>
                        </tr>
                        <tr>
                            <th>备注</th>
                            <td><p class="form-control-static" th:text="${workInfo.remark}"></p></td>
                            <th></th>
                            <td></td>
                        </tr>
                        <a th:if="${(workInfo.protocolencryption == 1&&(session.userInfo.departmentid == workInfo.departmentid||session.userInfo.departmentid==11))||workInfo.protocolencryption==0 }">
                            <tr th:if="${#lists.isEmpty(workInfo.agreementurlList)}">
                                <th>合作协议</th>
                                <td><p class="form-control-static"></p></td>
                                <th></th>
                                <td></td>
                            </tr>

                            <tr th:unless="${#lists.isEmpty(workInfo.agreementurlList)}"
                                th:each="agreementurl,state  : ${workInfo.agreementurlList}">
                                <th>合作协议</th>
                                <td>
                                    <a th:href="@{downloadFile(fileName=${agreementurl})}"
                                       th:text="${agreementurl}"></a>

                                </td>
                                <th></th>
                                <td></td>

                            </tr>
                        </a>
                        <tr th:if="${#lists.isEmpty(workInfo.legalPersonCertificateURL)}">
                            <th>企业法人资质证</th>
                            <td><p class="form-control-static"></p></td>
                            <th></th>
                            <td></td>
                        </tr>

                        <tr th:unless="${#lists.isEmpty(workInfo.legalPersonCertificateURL)}">
                            <th>企业法人资质证</th>
                            <td>
                                <a th:href="@{downloadFile(fileName=${workInfo.legalPersonCertificateURL})}"
                                   th:text="${workInfo.legalPersonCertificateURL}"></a>

                            </td>
                            <th></th>
                            <td></td>

                        </tr>

                        <tr th:if="${#lists.isEmpty(workInfo.businessLicenseURL)}">
                            <th>企业营业执照</th>
                            <td><p class="form-control-static"></p></td>
                            <th></th>
                            <td></td>
                        </tr>

                        <tr th:unless="${#lists.isEmpty(workInfo.businessLicenseURL)}">
                            <th>企业营业执照</th>
                            <td>
                                <a th:href="@{downloadFile(fileName=${workInfo.businessLicenseURL})}"
                                   th:text="${workInfo.businessLicenseURL}"></a>

                            </td>
                            <th></th>
                            <td></td>

                        </tr>

                        <tr th:if="${#lists.isEmpty(workInfo.qualificationsList)}">
                            <th>企业资质</th>
                            <td><p class="form-control-static"></p></td>
                            <th>企业资质名称</th>
                            <td></td>
                        </tr>
                        <tr th:unless="${#lists.isEmpty(workInfo.qualificationsList)}"
                            th:each="qualificationsList,state  : ${workInfo.qualificationsList}">
                            <th>企业资质</th>
                            <td>
                                <a th:href="@{downloadFile(fileName=${qualificationsList.qualificationsurl})}"
                                   th:text="${qualificationsList.qualificationsurl}"></a>

                            </td>
                            <th>企业资质名称</th>
                            <td><p class="form-control-static" th:text="${qualificationsList.qualificationsname}"></p>
                            </td>

                        </tr>


                        <tr>
                            <th>录入时间</th>
                            <td><p class="form-control-static"
                                   th:text="${#dates.format(workInfo.entertime,'yyyy-MM-dd')}"></p></td>
                            <th>录入人</th>
                            <td><p class="form-control-static" th:text="${workInfo.userInfo.name}"></p></td>
                        </tr>


                </div>


                </table>


            </div>
        </div>


    </div><!--/.row-->


</div>


































